package cn.xyhelp.shop.order.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单物料表
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_goods_item")
public class OrderGoodsItem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 销售单元名称
     */
    @TableField("sale_unit_name")
    private String saleUnitName;

    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 单价
     */
    @TableField("unit_price")
    private Long unitPrice;

    /**
     * 销售单元id
     */
    @TableField("sale_unit_id")
    private Integer saleUnitId;

    @TableField("order_id")
    private Integer orderId;

    @TableField("goods_id")
    private Integer goodsId;

    /**
     * 商品名
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 保修内容
     */
    @TableField("warranty_content")
    private String warrantyContent;

    /**
     * 保修天数
     */
    @TableField("warranty_day")
    private Integer warrantyDay;

    /**
     * 保修类型
     */
    @TableField("warranty_type")
    private Integer warrantyType;

    /**
     * 保修注意事项
     */
    @TableField("warranty_attention")
    private String warrantyAttention;

    /**
     * 保修地址
     */
    @TableField("warranty_adress")
    private String warrantyAdress;

    /**
     * 保修电话
     */
    @TableField("warranty_phone")
    private String warrantyPhone;


}
